package com.longma.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.longma.server.constant.enums.AlarmLevelEnum;
import com.longma.server.constant.enums.GeneralStateEnum;
import com.longma.server.constant.enums.NotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HAIBO
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Alarm对象", description="")
public class AlarmSetting implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报警参数名称")
    private String name;

    @ApiModelProperty(value = "云仓编号")
    private Integer yuncangId;

    @ApiModelProperty(value = "报警阈值")
    private Double min;

    @ApiModelProperty(value = "报警阈值")
    private Double max;

    @ApiModelProperty(value = "关联用户")
    private Integer operatorId;

    @ApiModelProperty(value = "0控制设备，1微信通知，2短信通知，3邮件通知")
    private NotifyTypeEnum notifyType;

    @ApiModelProperty(value = "0开启；1关闭")
    private GeneralStateEnum notifyState;

    @ApiModelProperty(value = "报警级别,0提示，1次要，2重要，3严重")
    private AlarmLevelEnum level;

    @ApiModelProperty(value = "联控设备")
    private String device;

    @ApiModelProperty(value = "联控设备动作")
    private String deviceAct;


}
